// 引入 request 文件
import request from './index.js'
export const ProductList = (param) => {
	return request({
		url: '/product/page',
		method: 'post',
		data:param
	})
}
export const ProductProxyList = (param) => {
	return request({
		url: '/product/proxy/page',
		method: 'post',
		data:param
	})
}
//获取匹配规格信息
export const ProductProxyInfo = (productCode) => {
	return request({
		url: `/product/proxy/sku/bind/info/${productCode}`,
		method: 'get',
	})
}
//提交匹配规格信息
export const ProductProxyInfoBind = (param) => {
	return request({
		url: '/product/proxy/sku/bind',
		method: 'post',
		data:param
	})
}
//获取关联商品id信息
export const ProductProxyId = (productCode) => {
	return request({
		url: `/product/proxy/get/${productCode}`,
		method: 'get',
	})
}
//绑定关联商品
export const ProductProxyBind = (param) => {
	return request({
		url: '/product/proxy/bind',
		method: 'post',
		data:param
	})
}
